package com.atfusu.dao;

import com.atfusu.base.BaseDao;
import com.atfusu.bean.entity.UserFollow;
import com.atfusu.bean.vo.UserFollowVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Title:
 * Author: fusu
 * DateTime:  2022/12/3
 * Description:
 **/
public interface UserFollowDao extends BaseDao<UserFollow> {

    void follow(@Param("houseId") Long houseId, @Param("userId") Long id);

    UserFollow getByUserIdAndHouseId(@Param("houseId") Long houseId, @Param("userId") Long userId);

    List<UserFollowVo> findListPage(Long userId);

    void cancelFollow(@Param("houseId") Long houseId, @Param("userId") Long userId);
}
